﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import flash.utils.*;

    public class SArenaToplists extends IMessageBase
    {
        public var code:int;
        public var zoneB:String;
        public var process:int;
        public var groupId:int;
        public var channelId:int;
        public var toplists:Dictionary;
        public const _type:int = 7006;
        public static var _regist:SArenaToplists = new SArenaToplists(true);

        public function SArenaToplists(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaToplists();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.code);
            param1.writeString(this.zoneB);
            param1.writeInt(this.process);
            param1.writeInt(this.groupId);
            param1.writeInt(this.channelId);
            DictSeqArenaToplistHelper.write(param1, this.toplists);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.code = param1.readInt();
            this.zoneB = param1.readString();
            this.process = param1.readInt();
            this.groupId = param1.readInt();
            this.channelId = param1.readInt();
            this.toplists = DictSeqArenaToplistHelper.read(param1);
            return;
        }// end function

    }
}
